<template>
    <view class="page-container">
        <u-button class="login-button" type="primary" shape="circle" @click="onLogin">登陆</u-button>
    </view>
</template>

<script>
export default {
    data() {
        return {
            redirect: undefined,
            otherQuery: {},
        };
    },
    onLoad() {
        console.log(this.$route.query);
        this.redirect = this.$route.query.jumpUrl;
        this.otherQuery = this.$route.query;
        delete this.otherQuery['jumpUrl'];
    },
    methods: {
        onLogin() {
            // this.login()
            //     .then((res) => {
            //         this.$Router.replace({
            //             path: this.redirect || '/',
            //             params: this.otherQuery,
            //         });
            //     })
            //     .catch((error) => {});
        },
    },
};
</script>

<style lang="scss" scoped>
.page-container {
    padding: 0 50rpx 100rpx;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.login-logo {
    margin: 0 auto;
}

.login-button {
    width: 100%;
    margin-top: 190rpx;
}
</style>
